/*
 * @Author: yanyqf
 * @Date: 2020-04-09 11:18:50
 * @LastEditTime: 2020-05-07 18:59:57
 * @Description: file content
 */
const btnState = {
    ADD: 'add',
    EDIT:'edit',
    BROWSE: 'browse'
}

export const btnCardTpl = {
    [btnState.EDIT]: [
        {
            key: 'Save',
            name: "保存",
            colors: "primary"
        },
        {
            key: 'Cancel',
            name: "取消"
        },
    ],
    [btnState.ADD]: [
        {
            key: 'Save',
            name: "保存",
            colors: "primary"
        },
        {
            key: 'Cancel',
            name: "取消"
        },
    ],
    [btnState.BROWSE]: [
        {
            key: 'Add',
            name: '新增',
            colors: "primary"
        },
        {
            key: 'Edit',
            name: '修改',
        },
        {
            key: 'Delete',
            name: '删除'
        }, 
        {
            key: 'Empower',
            name: '授权'
        },
        {
            key: 'UnEmpower',
            name: '取消授权'
        },
        {
            key: 'refresh',
            name: '刷新'
        }
    ]
}
export const btnCardTableTpl = {
    [btnState.EDIT]: [
        {
            key: 'InsertRow',
            name: "增行",
        },
        {
            key: 'DeleteRows',
            name: "删行",
            disabled: true
        },
    ]
}